#include <stdio.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <unistd.h>
#include "StdUdp.h"
#define port 8080
#define ip "192.168.204.128"

int main()
{
    StdUdpClient c(ip,port);
    while(1)
    {
        char msg[32] = {0};
        scanf("%s",msg);
        if(c.UdpCSend(msg,32) == false)
        {
            c.~StdUdpClient();
            return -1;
        }
        //sendto(sock,msg,32,0,(struct sockaddr*)&addr,sizeof(addr));
    }
    c.~StdUdpClient();
    return 0;
}